// samsting : this file is auto create.

#include "Ecs/2014-05-26/DescribeVpcsResponse.h"

namespace aliyun { namespace Ecs {

DescribeVpcsResponse::DescribeVpcsResponse() {
}

const std::vector<VSwitchId>& DescribeVpcsResponse::Vpc::GetVSwitchIds(void) const {
  return VSwitchIds_;
}

const std::vector<UserCidr>& DescribeVpcsResponse::Vpc::GetUserCidrs(void) const {
  return UserCidrs_;
}

const string& DescribeVpcsResponse::Vpc::GetVpcId(void) const {
  return VpcId_;
}

const string& DescribeVpcsResponse::Vpc::GetRegionId(void) const {
  return RegionId_;
}

const string& DescribeVpcsResponse::Vpc::GetStatus(void) const {
  return Status_;
}

const string& DescribeVpcsResponse::Vpc::GetVpcName(void) const {
  return VpcName_;
}

const string& DescribeVpcsResponse::Vpc::GetCreationTime(void) const {
  return CreationTime_;
}

const string& DescribeVpcsResponse::Vpc::GetCidrBlock(void) const {
  return CidrBlock_;
}

const string& DescribeVpcsResponse::Vpc::GetVRouterId(void) const {
  return VRouterId_;
}

const string& DescribeVpcsResponse::Vpc::GetDescription(void) const {
  return Description_;
}

const std::vector<DescribeVpcsResponse::Vpc>& DescribeVpcsResponse::GetVpcs(void) const {
  return Vpcs_;
}

int DescribeVpcsResponse::GetTotalCount(void) const {
  return TotalCount_;
}

int DescribeVpcsResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int DescribeVpcsResponse::GetPageSize(void) const {
  return PageSize_;
}

const char* DescribeVpcsResponse::BaseKey(void) {
  return "DescribeVpcsResponse";
}

void DescribeVpcsResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Vpcs__length = 0;
  UnmarshallerInt(Vpcs__length, response_map, "DescribeVpcsResponse.Vpcs.Length");
  if(Vpcs__length >= 0) {
    Vpcs_.resize(Vpcs__length);
    for(int i1 = 0; i1 < Vpcs__length; i1++) {
      int Vpcs_i1_VSwitchIds__length = 0;
      UnmarshallerInt(Vpcs_i1_VSwitchIds__length, response_map, "DescribeVpcsResponse.Vpcs[+"+string_ValueOfInt(i1)+"].VSwitchIds.Length");
      if(Vpcs_i1_VSwitchIds__length >= 0) {
        Vpcs_[i1].VSwitchIds_.resize(Vpcs_i1_VSwitchIds__length);
        for(int i2 = 0; i2 < Vpcs_i1_VSwitchIds__length; i2++) {
          UnmarshallerString(Vpcs_[i1].VSwitchIds_[i2], response_map, "DescribeVpcsResponse.Vpcs[+"+string_ValueOfInt(i1)+"].VSwitchIds["+string_ValueOfInt(i2)+"]");
        } // for(int i2 = 0; i2 < Vpcs_i1_VSwitchIds__length; i2++) {
      } // if(Vpcs_i1_VSwitchIds__length >= 0) {

      int Vpcs_i1_UserCidrs__length = 0;
      UnmarshallerInt(Vpcs_i1_UserCidrs__length, response_map, "DescribeVpcsResponse.Vpcs[+"+string_ValueOfInt(i1)+"].UserCidrs.Length");
      if(Vpcs_i1_UserCidrs__length >= 0) {
        Vpcs_[i1].UserCidrs_.resize(Vpcs_i1_UserCidrs__length);
        for(int i2 = 0; i2 < Vpcs_i1_UserCidrs__length; i2++) {
          UnmarshallerString(Vpcs_[i1].UserCidrs_[i2], response_map, "DescribeVpcsResponse.Vpcs[+"+string_ValueOfInt(i1)+"].UserCidrs["+string_ValueOfInt(i2)+"]");
        } // for(int i2 = 0; i2 < Vpcs_i1_UserCidrs__length; i2++) {
      } // if(Vpcs_i1_UserCidrs__length >= 0) {

      UnmarshallerString(Vpcs_[i1].VpcId_, response_map, "DescribeVpcsResponse.Vpcs["+string_ValueOfInt(i1)+"].VpcId");
      UnmarshallerString(Vpcs_[i1].RegionId_, response_map, "DescribeVpcsResponse.Vpcs["+string_ValueOfInt(i1)+"].RegionId");
      UnmarshallerString(Vpcs_[i1].Status_, response_map, "DescribeVpcsResponse.Vpcs["+string_ValueOfInt(i1)+"].Status");
      UnmarshallerString(Vpcs_[i1].VpcName_, response_map, "DescribeVpcsResponse.Vpcs["+string_ValueOfInt(i1)+"].VpcName");
      UnmarshallerString(Vpcs_[i1].CreationTime_, response_map, "DescribeVpcsResponse.Vpcs["+string_ValueOfInt(i1)+"].CreationTime");
      UnmarshallerString(Vpcs_[i1].CidrBlock_, response_map, "DescribeVpcsResponse.Vpcs["+string_ValueOfInt(i1)+"].CidrBlock");
      UnmarshallerString(Vpcs_[i1].VRouterId_, response_map, "DescribeVpcsResponse.Vpcs["+string_ValueOfInt(i1)+"].VRouterId");
      UnmarshallerString(Vpcs_[i1].Description_, response_map, "DescribeVpcsResponse.Vpcs["+string_ValueOfInt(i1)+"].Description");
    } // for(int i1 = 0; i1 < Vpcs__length; i1++) {
  } // if(Vpcs__length >= 0) {

  UnmarshallerInt(TotalCount_, response_map, "DescribeVpcsResponse.TotalCount");
  UnmarshallerInt(PageNumber_, response_map, "DescribeVpcsResponse.PageNumber");
  UnmarshallerInt(PageSize_, response_map, "DescribeVpcsResponse.PageSize");
}


} } // namespace aliyun { namespace Ecs {

// end of file 
